package com.baizhi.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@ToString
@Data
public class CommentSubPO {
    //评论者
    private ReviewerPO reviewer;
    //评论id
    private Integer id;
    //父评论id
    @JsonProperty("parent_id")
    private Integer parentId;
    //评论内容
    private String content;


    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("created_at")
    private Date createdAt;
}
